| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Lines | 15 |
| Ratio | 100 % |
| Changes | 0 | ||
| 1 | View Code Duplication | import { |
|
| 14 | var p = new Promise((resolve) => { |
||
| 15 | cmsOperations.save.save( |
||
| 16 | fileUtils.getFilePath(filePath), |
||
| 17 | req.body.tplPath, |
||
| 18 | req.body.json, |
||
| 19 | '', |
||
| 20 | 'draft', |
||
| 21 | null, |
||
| 22 | 'publish') |
||
| 23 | .then(() => { |
||
| 24 | resolve() |
||
| 25 | }).catch(function(e) { |
||
| 26 | console.error(e) |
||
| 27 | }) |
||
| 28 | }) |
||
| 29 | |||
| 65 | export default route |